<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login</title>
<style type="text/css">
*{
	margin:0px auto;
	padding: 0px auto;
}
body{
	text-align: center;
}
#divCentent{
	width:504px;
}
#divCentent div{
	width: 250px;
	border:1px red solid;
	display: block;
	/*文字自动换行*/
	word-break:break-all;
	float:left;
}
li{
	list-style: none;
}
ul{
	border:1px blue solid;
	padding:0px;
}
#showUsersDiv ul li{
	border:1px yellow solid;
	width:250px;
	text-align: left;
}
</style>
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/login/login.js"></script>
</head>
<body onbeforeunload="onbeforeonload();">
	<div id='divCentent'>
		<div>
			<div id="loginInfo">
				UserName:<input type="text" name="user.user_name" id="userName"><br>
				UserPwd&nbsp;:<input type="password" name="user.user_pwd" id="userPwd"><br>
				<input type="button" id="loginUser" value="Login">
			</div>
			<input type="button" id="readJson" value="ShowJson" /><br>
			<div id="thisJson"></div><br>
		</div>
		<div>
			<form action="user/user_addUser" method="post">
				UserName:<input type="text" name="user.user_name" id="userName"><br>
				UserPwd&nbsp;:<input type="password" name="user.user_pwd" id="userPwd"><br>
				<input type="submit" id="submit" value="Add">
			</form>
			<input type="button" id="showAllUser" value="ShowUsers"><br />
			<div id="showUsersDiv">
			</div>
		</div>
		<div>
			<form action="http://localhost:8080/LDWS/login.faces?goSub=1" method="post">
				UserName:<input type="text" name="loginForm:username" id="userName"><br>
				UserPwd&nbsp;:<input type="password" name="loginForm:password" id="userPwd"><br>
				<input type="hidden" name="javax.faces.ViewState" value="rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cAAAAAN0AAExcHQACi9sb2dpbi5qc3A="><br>
				<input type="hidden" name="loginForm_SUBMIT" value="1">
				<input type="submit" id="submitUser" value="SubUser">
			</form>
		</div>
	</div>
</body>
</html>